import { observable, action } from "mobx";
import axios from 'axios'
class wzStore {
  @observable wzdata = [];
  @action
  wzGetData = () => {
    axios.defaults.baseURL='/api'
    return axios({
      method: 'post',
      url: '/api/wzAll'
    }).then(res => {
      this.wzdata = res.data
    })
  }

}

export default wzStore;